///////////////////////////////////////////////////////////////////////////////
// Name:        localhistlinclass.h
// Purpose:     localhistlinclass function
// Copyright:   (c) 2006, Ivan Laptev, TT Solutions
// License:     GPL, Please contact us for commercial license.
//              http://www.tt-solutions.com/
///////////////////////////////////////////////////////////////////////////////
#ifndef LOCALHISTLINCLASS_H_
#define LOCALHISTLINCLASS_H_

#include "objectdet/common.h"
#include "objectdet/localhistintegral.h"

#include "objectdet/linclass.h"

// function [y,dscr]=localhistlinclass(X,rule)
//
// y=localhistlinclass(data,rule)
//
// Input:
//     rule.fun='localhistlinclass'
//     rule.model
//     rule.ftype
//     rule.rect
//     rule.trainerror

bool localhistlinclass(StageRule const & rule,
                       arrMat integral_block_histogram,
                       size_t channels,
                       size_t left, size_t top,
                       size_t width, size_t height);

#endif

